import App from './App.vue'
// 导入 pinia 实例
import pinia from './stores'
import 'virtual:uno.css'
import '@unocss/reset/tailwind.css'
import '@/styles/index.scss'

// #ifndef VUE3
import Vue from 'vue'

Vue.config.productionTip = false

const app = new Vue({
  ...App,
  pinia,
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'

export function createApp() {
  const app = createSSRApp(App)

  // 使用 pinia
  app.use(pinia)

  return {
    app,
  }
}
// #endif
